package com.spring.task.util;

import org.modelmapper.ModelMapper;
/**
 * 自动转换model
 * @author Administrator
 *
 */
public class AutoMapper {
	private static ModelMapper mapper = new ModelMapper();

	public static <D> void map(Object srcObj, D destObj) {
		mapper.map(srcObj, destObj);
	}
}
